package com.wm.task;

import java.util.Scanner;

public class task10 {
    public static void main(String[] args) {
        for (int i = 1; i <= 2025; i++) {
            if((i % 4 == 0 && i % 100 != 0)|(i % 400 ==0)){
                System.out.println(i);
            }
        }


    }
}
